package com.ehotting.edsta.mqbd.monitor.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@Slf4j
public class TestController {


    @GetMapping("/aiplatform/traininginfo/training-info/getTrainingStatusList")
    public Object diagnosisPredictRelease(){
        String s = "{" +
                "  \"data\": [" +
                "    {" +
                "      \"num\": 0," +
                "      \"task1\": \"未开始\"" +
                "    }," +
                "    {" +
                "      \"num\": 0," +
                "      \"task2\": \"运行中\"" +
                "    }," +
                "    {" +
                "      \"num\": 15," +
                "      \"task3\": \"已结束\"" +
                "    }" +
                "  ]," +
                "  \"msg\": \"执行成功\"," +
                "  \"status\": 200," +
                "  \"success\": true" +
                "}";
        return  s;
    }

    @GetMapping("/subtask/getNumber")
    public Object caeRelease(){
        String s = "{\n" +
                "  \"code\": 0,\n" +
                "  \"message\": null,\n" +
                "  \"data\": [\n" +
                "    {\n" +
                "      \"label\": \"running\",\n" +
                "      \"count\": 0\n" +
                "    },\n" +
                "    {\n" +
                "      \"label\": \"complete\",\n" +
                "      \"count\": 1\n" +
                "    },\n" +
                "    {\n" +
                "      \"label\": \"queue\",\n" +
                "      \"count\": 0\n" +
                "    }\n" +
                "  ],\n" +
                "  \"error\": null,\n" +
                "  \"throwable\": null\n" +
                "}";
        return  s;
    }


}
